package com.cy.exception.enums;

public enum ErrorEnums {

	//异常定义列表
	UNKNOWN_ERROR(1,"未知异常"),
	FIND_NULL(0,"未查询到任何数据"),
	FIND_ERROR(101,"查询异常"),
	ADD_ERROR(102,"添加异常"),
	EDIT_ERROR(103,"修改异常"),
	REMOVE_ERROR(104,"删除异常"),
	NAME_PASS_ERROR(105,"用户名或密码有误"),
	CHECK_ERROR(110);
	
	private Integer code;
	private String message;
	
	private ErrorEnums(Integer code, String message) {
		
		this.code = code;
		this.message = message;
	}	

	private ErrorEnums(Integer code) {
		
		this.code = code;
	}
	
	private ErrorEnums() {
		
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
		
}
